package com.yyplatform.admin.platform.file.model.entity;

import com.yyplatform.admin.infra.model.entity.BaseEntity;

import jakarta.persistence.Column;
import jakarta.persistence.Entity;
import jakarta.persistence.Table;
import lombok.Getter;
import lombok.Setter;

/**
 * Created on 2024-09-18
 */
@Entity
@Getter
@Setter
@Table(name = "sys_file")
public class SysFileEntity extends BaseEntity {

    @Column(name = "url", nullable = false, columnDefinition = " varchar(200) comment '文件URL地址' ")
    private String url;

    @Column(name = "original_filename", columnDefinition = "varchar(200) comment '原始文件名' ")
    private String originalFilename;

    @Column(name = "file_size", nullable = false, columnDefinition = " bigint(20) comment '文件大小' ")
    private Long fileSize;

    @Column(name = "content_type", columnDefinition = "varchar(200) comment '文件类型' ")
    private String contentType;


}
